<!DOCTYPE html>
<html>

<head>
    <!-- include "../../common/meta.html" -->
    <title>
        Download - JavaScript on Fiber
    </title>
</head>

<body>
    <!-- include "../../common/header.html" -->
    <div class="band">
        <div class="container">
            <span class="group">Download 下载与更新</span>
        </div>
    </div>
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="/index.html">首页</a></li>
            <li class="active">
                &nbsp;下载与更新
            </li>
        </ol>
    </div>
    <div class="container">
        <%var cnt = 0;
        info.forEach(r => {
            if (!r.prerelease) {
                cnt ++;
                var d = r.published_at.substr(0,  10);%>
            <h2>
                <a href="./<%=r.tag_name%>.html">
                    <%=d + ', Version ' + r.tag_name%>
                </a>
            </h2>
            <%if(cnt <= 2){%>
                <div class="row">
                    <div class="col-sm-7">
                        <%-r.html%>
                    </div>
                    <!-- /.blog-main -->

                    <div class="col-sm-4 col-sm-offset-1">
                        <div>
                            <h4>Archives</h4>
                            <ol class="list-unstyled">
                                <%r.assets.forEach(f => {
                                var re = /(\.gz)|(\.cab)|(\.xz)/g;
                                if(!re.test(f.name)){%>
                                    <li>
                                        <a class="down" href="<%-f.browser_download_url%>">
                                            <%=f.name%>
                                        </a>
                                    </li>
                                    <%}});%>
                                        <li>
                                            <a class="down" href="<%-r.tarball_url%>">Source code (tar.gz)</a>
                                        </li>
                                        <li>
                                            <a class="down" href="<%-r.zipball_url%>">Source code (zip)</a>
                                        </li>
                                        <li>
                                            <a class="down" href="../dist/<%=r.tag_name%>/">All download options</a>
                                        </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.blog-sidebar -->

                </div>
                <!-- /.row -->
                <%}}});%>

    </div>
    <!-- /.container -->

    <!-- include "../../common/footer.html" -->
</body>

</html>